﻿using System.Collections.Generic;
using System.Windows.Controls;
using CustomControls.InheritedFrameworkControls;
using CustomHelpers.Extensions;
using Infrasturcture.Global.Controls.LobbyMap;
using Infrasturcture.TouchLibrary;

namespace CustomControls.Maps
{
	/// <summary>
	/// Interaction logic for LobbyMap.xaml
	/// </summary>
    public partial class GroundFloorMap : AMap, IMTouchControl, IMap
	{
        public IList<IMapElement> MapElements { get; set; }

	    public GroundFloorMap()
		{
			this.InitializeComponent();
		    InitializeMapElements();

		}

	    private void InitializeMapElements()
	    {
            MapElements = new List<IMapElement>();
	        var viewboxes = this.FindChildren<Viewbox>();
	        foreach (var viewbox in viewboxes)
	        {
                if (viewbox.Tag == null) continue;
	            var mapElement = new MapElement {Viewbox = viewbox};
                MapElements.Add(mapElement);
	        }
	    }
        public IMTContainer Container { get; set; }
	}
}